import request from '@/utils/request'

export const login = (data) => {
    return request({ 
        method:'POST',
        url:'/user/login',
        data
    })
}


export const getUser = params => { 
    return request({ 
        method:'get',
        url:'/user/getUser',
        params
    })
}

export const updateUser = data => { 
    return request({ 
        method:'post',
        url:'/user/updateUser',
        data
    })
}

export const getUserCount = () => { 
    return request({ 
        method:'post',
        url:'/user/getUserCount',
    })
}